from src.main import RealTimeSubtitleApp

if __name__ == "__main__":
    app = RealTimeSubtitleApp()
    try:
        app.start()
    except KeyboardInterrupt:
        app.stop()
    except Exception as e:
        print(f"程序运行出错: {str(e)}")
        app.stop() 